import requests
import re
import random


def showrto():
    r = requests.get(
        "https://www.showrto.com/show/xiuren",
        headers={
            "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
                          " (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
        }
    )

    images = re.findall(r'data-src="(https://www\.showrto\.com/wp-content/themes/riplus/timthumb\.php\?src=.*?)"', r.text)
    return images[random.randint(0, len(images) - 1)]
